package com.lfy.event;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.event.TransactionalEventListener;

@Component
public class LfyListener {
//    @TransactionalEventListener(EventLfyEntity.class)
    @EventListener(classes = EventLfyEntity.class)
    public void testListener(EventLfyEntity eventLfyEntity){
        Lfy lfy = eventLfyEntity.getLfy();
        System.out.println(lfy);
    }
}
